import React, { Component } from 'react'
import { useParams,useSearchParams ,Outlet,NavLink,useNavigate} from 'react-router-dom'
function News (){
        const params =  useParams()      
        const [search] = useSearchParams()
        console.log(search)
        return (
            <div>
               我是news的页面 
               {params.id}
               {search.get('id')}
               <Outlet ></Outlet>
            </div>
        )
}

export default News
